package com.sodaopen.study.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import com.sodaopen.study.mapper.UserMapper;


@Controller
public class HelloController {
    @Autowired
    private UserMapper userMapper;

    @GetMapping("/hello")
    public String hello(Model model){
    	model.addAttribute("username", "OBJ");
        return "hello";
    }
    
    @GetMapping("/hello2")
    public String hello2(Model model){
    	model.addAttribute("username", "OBJ222");
        return "hello";
    }
}
